<template>
	<view><renovation v-for="(item, i) in list" :mydata="item.data" :key="i"></renovation></view>
</template>

<script>
import renovation from '@/components/renovation/index.vue';
export default {
	data() {
		return {
			list: [],
			id:''
		};
	},

	// watch: {
	// 	id(){
	// 		this.custompage()
	// 	}
	// },
	components: {
		renovation
	},
	// created() {
	// 	this.custompage()
	// },
	methods: {
		custompage(id) {
			this.id = id;
			let data = {
				id: id
			};
			this.$http('/renovation/custom', data, 'GET').then(res => {
				if (res.statusCode == 200) {
					let data = res.data;
					let configure = JSON.parse(data.msg);
					this.list = configure.list;
					this.title = configure.page_data.nav_name;
				}
			});
		}
	}
};
</script>

<style></style>
